const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
    devServer: {
      port: 4001,
      host: '0.0.0.0',
      hot: true,
      disableHostCheck: true,
      proxy: {
        '/api': {
          target: 'http://localhost:8088/',
          ws: true,
          changeOrigin: true,
          logLevel: 'debug',
/*           pathRewrite: { '^/api': '' }, */
           pathRewrite: {  '/api/': '', },
      disableHostCheck: true
    },
}
    }
}
